/*********************************************
 * EIRMULATOR is under the beerware license.
 *
 * THE BEERWARE LICENSE (Revision 42):
 *
 * As long as you retain this notice you can
 * do whatever you want with this stuff. If we
 * meet some day, and you think this stuff is 
 * worth it, you can buy me a drink in return.
 */


/** \file error.h
 * \brief Declaration de la classe qui sera lancée par les exceptions.
 * \author JDaM <brossill@enseirb.fr>
 * \version 
 * \date 28.12.2005 @ 20:23
 *
 */

#ifndef ERROR_H
#define ERROR_H

#include <string>

class CError
{

public :
  
  CError(std::string text) {this->err_msg=text; this->is_an_error=true;}; 

  CError(void) {this->err_msg=""; this->is_an_error=false; };

  bool getIsError() { return this->is_an_error;};

  const char* getMsg() {return this->err_msg.c_str();};

private:

  bool is_an_error;
  
  std::string err_msg;
};

#endif /* ERROR_H */
